# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mapplauncherd-booster-qtcomponents
pkgver=0.1.1_git1
pkgrel=2
pkgdesc="Application launch booster for Qt5 Qt Components"
url="https://github.com/sailfishos/mapplauncherd-booster-qtcomponents"
arch="all !armhf" # blocked by mapplauncherd
license="LGPL-2.1-only"
makedepends="
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	mapplauncherd-qt-dev
	"
source="https://github.com/sailfishos/mapplauncherd-booster-qtcomponents/archive/${pkgver/_/+}/mapplauncherd-booster-qtcomponents-${pkgver/_/+}.tar.gz
	0001-fix-pro.patch
	mapplauncherd-booster-qtcomponents.desktop
	"
options="!check" # No tests
builddir="$srcdir/$pkgname-${pkgver/_/-}"

build() {
	qmake-qt5 \
		PREFIX=/usr
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	install -Dm644 -t "$pkgdir"/etc/xdg/autostart \
		"$srcdir"/mapplauncherd-booster-qtcomponents.desktop

	# We don't ship systemd
	rm -r "$pkgdir"/usr/lib/systemd
}
sha512sums="
b2f6bc9671b5140f13b97ffa02133fecb10df9825e766ff7cf547f71a71f3a9e107d0ac6170f041fb8992b75847ca85b575f06f50b8f88dffc1e909d4ae41096  mapplauncherd-booster-qtcomponents-0.1.1+git1.tar.gz
80f8d59da0c333f81060b687028e5199a24c5e480b905bf53c0e7fc3ff2c7db330bd4b87f34c376b137da509aa56214071784482a7b59f48c9e40a7f3909d966  0001-fix-pro.patch
3b5b175bd7ce1c614ae95cada3d6dfe754c1af781dbb441171b769038f02912f31f31d7923ca0d1aec3d255aa8b485ec26df5a15f43eff24e32b4d431b9e6533  mapplauncherd-booster-qtcomponents.desktop
"
